package tk.mynoteapp.dev.other.eliminateifelse.right.templatemethod;

import org.springframework.stereotype.Service;

@Service
public class AliPay implements IPay {

    @Override
    public boolean support(String code) {
        return "ali".equals(code);
    }

    @Override
    public void pay() {
        System.out.println("===发起支付宝支付===");
    }
}
